<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <f:facet name="first">
            <meta http-equiv="X-UA-Compatible" content="IE=edge" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0, 
                  maximum-scale=1.0, user-scalable=0" />
            <meta name="apple-mobile-web-app-capable" content="yes" />
        </f:facet>
        <title>testtesttest</title>
    </h:head>
    <h:body>
        <h:form>
            <p:selectManyCheckbox id="grid" value="#{deleteService.selectedName}" layout="grid" columns="3">
                <f:selectItems value="#{userService.list}" var="user" itemLabel="#{user.name}" itemValue="#{user.name}" />
            </p:selectManyCheckbox>
            <br/>
            <p:commandButton id="submit-button" value="提交" action="index.xhtml" actionListener="#{deleteService.deleteUser}"/>
        </h:form>
        
        <br/>
        <h:form>
            <p:inputText id="input" value="#{deleteService.deleteName}">
                <p:ajax event="keyup" update="output" />
            </p:inputText>
            <p>您输入的账号名为:</p><p:outputLabel id="output" value="#{deleteService.deleteName}"></p:outputLabel>
            <br/>
            <p:commandButton id="deleteButton" value="提交" action="index.xhtml" actionListener="#{deleteService.deleteName}"/>
        </h:form>
       
    </h:body>
</html>
